//
//  AssetsHeadView.m
//  DBAChain
//
//  Created by Mxionlly on 2018/9/6.
//  Copyright © 2018年 Evan. All rights reserved.
//

#import "AssetsHeadView.h"
#import "CommonData.h"

@implementation AssetsHeadView

+ (AssetsHeadView *)getHeadView
{
    AssetsHeadView *headView = [[[NSBundle mainBundle] loadNibNamed:@"AssetsHeadView" owner:nil options:nil] objectAtIndex:0];
    headView.frame = CGRectMake(0, 0, KScreenWidth, 396);
    [headView initUI];
    return headView;
}

-(void)initUI
{
    self.scrollView = [[AssetsScrollView alloc]initWithFrame:CGRectMake(0, 0, CGRectGetWidth(self.bannerView.frame), CGRectGetHeight(self.bannerView.frame)-50)];
    NSMutableArray *array = [NSMutableArray new];
    [array addObject:@"1"];
    [array addObject:@"2"];
    self.scrollView.items = array;
    [self.bannerView addSubview:self.scrollView];
}

@end
